<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:body>
        <div class="change_pass">
            <h3 style="color: #3F8AAC; margin: 5px 0 0 5px;">List Interviews</h3>
            <f:view>
                <h:form>
                    <h:dataTable id="outInters" style="text-align: center;" columnClasses="bd_td1,bd_td,bd_td,bd_td,bd_td,bd_td,bd_td,bd_td" cellpadding="3" cellspacing="1" border="0" styleClass="joblist" rowClasses="list_footer_cell" headerClass="list_header_cell" value="#{interviewsManagedBean.listInterbyApplicant}" var="item">
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="Applicant Name"/>
                            </f:facet>
                            <h:commandLink action="#{interviewsManagedBean.detailsInterviewApplicants(item)}" value="#{item.applicants.applicantName}" >
                                <f:setPropertyActionListener value="#{item}" target="#{interviewsManagedBean.inter}"  />
                            </h:commandLink>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="Vacance Title"/>
                            </f:facet>
                            <h:outputText value="#{item.vacances.vacantyTitle}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="Attached Date"/>
                            </f:facet>
                            <h:outputText value="#{item.attachedDate}">
                                <f:convertDateTime pattern="MM/dd/yyyy" />
                            </h:outputText>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="Start Time"/>
                            </f:facet>
                            <h:outputText value="#{item.startTime}"/> hours
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="End Time"/>
                            </f:facet>
                            <h:outputText value="#{item.endTime}"/> hours
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="Status"/>
                            </f:facet>
                            <h:selectOneMenu disabled="true" value="${item.applicants.appStatus}">
                                <f:selectItem  itemLabel="---Select---" itemValue="0" ></f:selectItem>
                                <f:selectItem itemLabel="Not in Process" itemValue="1" ></f:selectItem>
                                <f:selectItem itemLabel="In Process" itemValue="2"></f:selectItem>
                                <f:selectItem itemLabel="Hired" itemValue="3"></f:selectItem>
                                <f:selectItem itemLabel="Banned" itemValue="4"></f:selectItem>
                            </h:selectOneMenu>
                        </h:column>
                    </h:dataTable>
                </h:form>
            </f:view>
        </div>
    </h:body>
</html>

